<!DOCTYPE html>
<html lang="en">
<!-- 古韵超市 · 登录注册页 -->

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>古韵超市 · 登录注册页</title>
  <link rel="stylesheet" href="css/login_reg.css">
</head>

<body>
  <div class="container">
    <div class="form-warp">
      <form class="sign-in-form" action="php/log-reg.php" method="post">
        <h2 class="form-title">用户登录</h2>
        <input type="hidden" name="action" value="login">
        <input type="text" name="uid" placeholder="用户ID" required />
        <input type="password" name="upassword" placeholder="登录密码" required />
        <div class="submit-btn"><button class="subbtn" type="submit">立即登录</button></div>
        <div class="adiv">
          <span><a href="../index.php">暂不登录</a></span>
          <span><a href="reset_pwd.html">找回密码</a></span>
        </div>
      </form>

      <form class="sign-up-form" action="php/log-reg.php" method="post">
        <h2 class="form-title">用户注册</h2>
        <input type="hidden" name="action" value="reg">
        <input placeholder="用户ID" name="uid" required />
        <input placeholder="用户昵称" id="uname" name="uname" required />
        <input type="password" id="pass1" name="upassword" placeholder="登录密码" required />
        <input type="password" id="pass2" placeholder="确认密码" required />
        <input type="tel" placeholder="手机号" id="uphone" name="uphone" required />
        <div class="submit-btn"><button class="subbtn" type="submit" onclick="return check_reg();">立即注册</button></div>
      </form>
    </div>
    <div class="desc-warp">
      <div class="desc-warp-item sign-up-desc">
        <div class="content">
          <button class="changebtn" id="sign-up-btn">注册</button>
        </div>
        <img src="img/log_reg_img/login.svg" alt="">
      </div>
      <div class="desc-warp-item sign-in-desc">
        <div class="content">
          <button class="changebtn" id="sign-in-btn">登录</button>
        </div>
        <img src="img/log_reg_img/register.svg" alt="">
      </div>
    </div>
  </div>
  <script src="js/login_reg.js"></script>
</body>

</html>